/**
 * 
 */
package com.et114.modules.products.base;

import java.util.List;

import com.et114.components.simpletable.DataList;
import com.et114.components.simpletable.dao.SimpleTableDAOImpl;


/*
 * @author guanhw
 */
public class ProImageDao extends SimpleTableDAOImpl {

	@ SuppressWarnings ( "unchecked" )
	public List< ProImage > getProImageList( ProImage vo )  throws Exception {
		return queryList ( vo , "getProImageNpage" ) ; 
	} 
	
	public DataList getProImages( ProImage vo )  throws Exception {
		return queryListDataList ( vo , "getProImage" ) ; 
	} 	
	
	public ProImage getProImageById( Long proId ) throws Exception {
		return ( ProImage ) load( proId , "getProImageById" ) ; 
	} 
	
	
	public Long  saveProImage( ProImage vo ) throws Exception {
		return ( Long )insert( vo , "insertProImage" ) ; 
	}
	
	public void updateProImage( ProImage vo ) throws Exception {
		update( vo , "updateProImage" ) ; 
		
		
	}
	

	
	public void removeProImageById( Long id ) throws Exception {
		delete( id , "removeProImageById" ) ; 
	}
	
	public void removeProImage( ProImage vo ) throws Exception {
		delete( vo , "removeProImage" ) ; 
	}
	
	public void removeProImageByColor( ProImage vo ) throws Exception { 
		delete( vo , "removeProImageByColor" ) ;
	}
	
	@ SuppressWarnings ( "unchecked" )
	public List< ProImage > getProImageByColor( ProImage vo  ) throws Exception {
		return queryList( vo ,  "getProImageByColor" ) ; 
	}
	
	@ SuppressWarnings ( "unchecked" )
	public List< ProImage > getProImageColorsByProIdsCacheModel( ProImage vo ) throws Exception {
		return queryList( vo ,  "getProImageColorsByProIdsCacheModel" ) ; 
	}
	@ SuppressWarnings ( "unchecked" )
	public List< ProImage > getProImagesByProIdaTypeCacheModel(   ProImage vo  ) throws Exception { 
		return queryList( vo ,  "getProImagesByProIdaTypeCacheModel" ) ; 
	}
}
